#include "stdafx.h"
#include "AchiveCounter.h"
#include "InstanceTouch.h"
DECL_INSTANCE_TOUCH(ETouch_AchiveCounter);

struct  AchiveCounterDefReflectionRegister
{
	AchiveCounterDefReflectionRegister()
	{
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_iID,INVALID_ID).Editor_SetAsPrimaryKey();
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_sDisplayName,std::string("DefaultName")).Editor_SetAsDisplayName();
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_iEventClassID,INVALID_ID).Editor_SetAsForeignKey(eDefGroup_Default,eDefaultDef_ClassList);

		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_sParam1,std::string("")).Editor_SetAsObjMemberReferenced("m_iEventClassID","Compare1");
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_eCompare1,eCompare_Null).Editor_SetAsEnumation<ECompare>("Compare1");
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_iCompValue1,0).Editor_SetAsRaw("Compare1");

		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_sParam2,std::string("")).Editor_SetAsObjMemberReferenced("m_iEventClassID","Compare2");
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_eCompare2,eCompare_Null).Editor_SetAsEnumation<ECompare>("Compare2");
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_iCompValue2,0).Editor_SetAsRaw("Compare2");

		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_sParam3,std::string("")).Editor_SetAsObjMemberReferenced("m_iEventClassID","Compare3");
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_eCompare3,eCompare_Null).Editor_SetAsEnumation<ECompare>("Compare3");
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_iCompValue3,0).Editor_SetAsRaw("Compare3");


		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_eSuccessOpt,EAchiveCountOPt_NULL).Editor_SetAsEnumation<EAchiveCountOPt>("Success Opt");
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_sSuccessParam,std::string("")).Editor_SetAsObjMemberReferenced("m_iEventClassID","Success Opt");
	
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_eFailedOpt,EAchiveCountOPt_NULL).Editor_SetAsEnumation<EAchiveCountOPt>("Failed Opt");
		REGISTER_REFLECTION_MEMBER(AchiveCounter,m_sFailedParam,std::string("")).Editor_SetAsObjMemberReferenced("m_iEventClassID","Failed Opt");

		
		GlobalClassManager::Instance().RegisterClass(AchiveCounter::s_GetReflection(),eDefaultDef_AchiveCounter);
		GlobalDefManager::Instance().RegisterDefManger(&AchiveCounterManager::Instance());

	}
}___AchiveCounterDefReflectionRegister;

rewrite  void AchiveCounter::OnArchieveReaded()
{
}

void AchiveCounterManager::OnArchieveReaded()
{
	__AchiveCounterManager::OnArchieveReaded();
}